package myalg.diningphilosophers;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author Pavel Belevich
 *         Date: Jun 26, 2012
 *         Time: 11:13:40 AM
 */
class Fork {
    public static final int ON_TABLE = -1;
    static int instances = 0;
    public int id;
    public AtomicInteger holder = new AtomicInteger(ON_TABLE);

    Fork() { id = instances++; }
}
